import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const DASHBOARD: AppRouteRecordRaw = {
  path: '/drive',
  name: 'drive',
  component: DEFAULT_LAYOUT,
  redirect: '/drive',
  meta: {
    title: '云盘',
    requiresAuth: true,
    icon: 'icon-cloud',
    hideChildrenInMenu: true,
    order: 7,
  },
  children: [
    {
      path: '',
      name: 'DriveIndex',
      component: () => import('@/views/drive/index.vue'),
      meta: {
        title: '云盘',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default DASHBOARD;
